#include "trap.h"
   .set noat
   .globl main 
   .text

main:
    li $at, 0xccddeeff  
    li $v0, 0x11223344
    li $a0, 0x80000000
    sb $v0, 0x0($a0)
    sb $at, 0x1($a0)
    lhu $t0, 0x0($a0)  #$t0 == 0xff44
    sh $v0, 0x4($a0)
    lhu $t1, 0x4($a0) #$t1 == 0x3344
    sll $t0, $t0, 16
    add $t1, $t0, $t1 #$t1 == 0xff443344
    sw $t1, 0xc($a0)
    lw $t2, 0xc($a0)
    beq $t1, $t2, TARGET

TARGET:
    HIT_GOOD_TRAP		#stop temu